package com.lvmama.pangolin.mybatis.mapper.xc;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.xc.XCTicketCommodityItem;
import com.lvmama.pangolin.entity.xc.XCTicket_CommodityDetail;

public interface XCTicketCommodityItemsMapper {
	/**  
	* @Title：TCommodityItemsMapper.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年3月6日上午11:07:29  
	*/
	public int insert(XCTicket_CommodityDetail item);
	public void insertSelective(XCTicketCommodityItem item);
	public XCTicketCommodityItem selectById(@Param("commodityId")String commodity_id,@Param("productId")String productId);
	public int update(XCTicket_CommodityDetail item);
	public int updateByProdCommIdAndType (XCTicket_CommodityDetail item);
	public void updateSelective(XCTicketCommodityItem item);
	public List<XCTicketCommodityItem> selectByProdId(@Param("product_id")String product_id);
	public XCTicketCommodityItem selectByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public List<XCTicketCommodityItem> selectByProdComName(@Param("productId")String productId,@Param("commodityName")String commodityName);
	public void updateByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteLinkByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteById(@Param("id")String id);
	public List<XCTicketCommodityItem> selectByProdidAndIsLinked(Map<String, String> map);
	public List<XCTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<XCTicketCommodityItem> getActiveCommodity(@Param("productId")String productId);
}
